Page({
    data: {
        index: 0,
        knowleage: [{
                src: "/images/可回收物.png",
                text: "可回收物"
            },
            {
                src: "/images/有害垃圾.png",
                text: "有害垃圾"
            },
            {
                src: "/images/厨余垃圾.png",
                text: "厨余垃圾"
            },
            {
                src: "/images/其他垃圾.png",
                text: "其他垃圾"
            }
        ]
    },
    onShow() {
        // console.log(this.data.knowleage);
    },
    clickIcons(data) {
        let index = data.currentTarget.dataset.index
        this.setData({
            index
        })
    }
})